package cn.edu.nju.software.greencreditsystem.domain;

import javax.persistence.*;

/**
 * 作者：何启睿
 * 创建时间：2011-8-18
 * 类描述：环境标准值实体类
 */
@Entity
@Table(name="environment_standard_value")
public class EnvironmentStandardValue
{
    private int id;
    private EnvironmentFactor factor;
    private Enterprise enterprise;
    private double standardValue;
    private double changeValue;
    private double type;//0.越大越好；-1.越小越好；k（k>0）与standardValue差的绝对值大于k则不好

    
    @Id
    @GeneratedValue
    public int getId()
    {
        return id;
    }

    public void setId(int id)
    {
        this.id = id;
    }

    @ManyToOne
    public EnvironmentFactor getFactor()
    {
        return factor;
    }

    public void setFactor(EnvironmentFactor factor)
    {
        this.factor = factor;
    }

    @ManyToOne
    public Enterprise getEnterprise()
    {
        return enterprise;
    }

    public void setEnterprise(Enterprise enterprise)
    {
        this.enterprise = enterprise;
    }

    public double getStandardValue()
    {
        return standardValue;
    }

    public void setStandardValue(double standardValue)
    {
        this.standardValue = standardValue;
    }

    public double getChangeValue()
    {
        return changeValue;
    }

    public void setChangeValue(double changeValue)
    {
        this.changeValue = changeValue;
    }

    public double getType()
    {
        return type;
    }

    public void setType(double type)
    {
        this.type = type;
    }
}
